<%@ page contentType="text/html;charset=UTF8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="common/css/login.css" />
<script type="text/javascript" src="js/js.js"></script>

<title>无标题文档</title>
</head>
<body>
<div style="width: 1080px; height: 700px; margin: 0 auto;background-color: #F2F2F2;">

	<img src="common/images/1411551255-01.jpg" width="100%" height="500" />
    <!--总层-->
    <div style="width: 100%; height: 37px; background-image:url(common/images/bg-01.jpg)">
    	<center>
            <!--账号密码登录层-->
            <div style="width:900px; height:37px; margin-top:3px;" >
                <form name="loginForm" action="/tologin.do" method="post" style="font-size:18px; float:left;">
                    <font style="font-weight:bold;">账&nbsp;&nbsp;&nbsp;号</font>：<input type="text" name="username" style="border:0px; font-size:21px; width:200px;" />
                    <font style="font-weight:bold;">密&nbsp;&nbsp;&nbsp;码</font>：<input type="password" name="passwd" style="border:0px; font-size:21px; width:200px;" />
                    <font style="font-weight:bold;">验证码</font>： <input name="validWord" type="text" id="walidWord" class="txtinput" error="" isnull=n msg='验证码不能为空'/>
									<img border=0 src="${pageContext.request.contextPath}/authImg.do">
               
                <!--登录按钮-->
                <div style="margin-left:10px; margin-top:2px;" >
                    <image  src="common/images/denglu_m.gif" style="margin-left:5px; cursor:hand"  onclick="chk();" />
                </div>
                 </form>
            </div>
            
        </center>

    <!--总层End-->
    </div>
    
    
    
    
    <!--底层-->
    <div style="margin-top:100px; margin-left:40px;">
        版本  
        <font color="#95989b" size="-2">Copyright © 2010 Apple Inc. All rights reserved</font>
    </div>
    </div>
</body>
</html>
<script>
   function chk(){
	   if(document.loginForm.username.value==""){
		   alert("用户名不能为空");
		   return false;
	   }
	   else if(document.loginForm.passwd.value==""){
		   alert("密码不能为空");
		   return false;
		   }
	   else if(document.loginForm.validWord.value==""){
		   alert("验证码不能为空");
		   return false;
		   }
	   else{
		   document.loginForm.submit();
	   }
	   
	   return true;
   }
</script>